<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cgzxExceptionManagementMes-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">异常编码
0：物料异常
1：工装工具异常
2：人员异常
3：工艺异常
4：质量异常
：</label>
				<div class="col-sm-8">
					<input id="code" name="code" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">异常小类
编码为0时
0：物料缺失
1：物料多余
2：物料错误
编码为1时
0：工装工具缺失
编码为2时
0：工种缺失
1：数量不足
编码为3时
0：工艺异常
编码为4时
0：原材料异常
1：自制件异常
：</label>
				<div class="col-sm-8">
					<input id="modelcode" name="modelcode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品名称：</label>
				<div class="col-sm-8">
					<input id="productName" name="productName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品编号：</label>
				<div class="col-sm-8">
					<input id="produUid" name="produUid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工序名称：</label>
				<div class="col-sm-8">
					<input id="opName" name="opName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工序编号：</label>
				<div class="col-sm-8">
					<input id="opCode" name="opCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工位编号：</label>
				<div class="col-sm-8">
					<input id="workstationCode" name="workstationCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">配送单号：</label>
				<div class="col-sm-8">
					<input id="reqCode" name="reqCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料编码
异常编码为0,1,4时才有值
：</label>
				<div class="col-sm-8">
					<input id="matId" name="matId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料数量
异常编码为0,1,4时才有值
：</label>
				<div class="col-sm-8">
					<input id="matNum" name="matNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">派工单号：</label>
				<div class="col-sm-8">
					<input id="dispatchCode" name="dispatchCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料序列号
异常编码为4，异常小类为1时才有值
：</label>
				<div class="col-sm-8">
					<input id="seriesCode" name="seriesCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">物料地址
Code=1
modelcode=1,2
需要传入地址码
.当物料错误多余的时候需要传入地址
：</label>
				<div class="col-sm-8">
					<input id="matAddress" name="matAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">标志位：</label>
				<div class="col-sm-8">
					<input id="flag" name="flag" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/cgzxExceptionManagementMes"
		$("#form-cgzxExceptionManagementMes-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-cgzxExceptionManagementMes-add').serialize());
	        }
	    }
	</script>
</body>
</html>
